package com.kuang.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kuang.common.utils.PageUtils;
import com.kuang.common.vo.MemberRespVo;
import com.kuang.gulimall.member.entity.MemberEntity;
import com.kuang.gulimall.member.execption.PhoneExistException;
import com.kuang.gulimall.member.execption.UsernameExistException;
import com.kuang.gulimall.member.vo.MemberRegistVo;

import java.util.Map;

/**
 * 会员
 *
 * @author xiangmou
 * @email 1140968804@qq.com
 * @date 2021-05-05 19:55:41
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    //检查唯一性
    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUsernameUnique(String userName) throws UsernameExistException;

    MemberRespVo login(MemberRespVo vo);

}

